<?php
//header('Content-Type: text/xml;charset=UTF-8');

$basepath = $_SERVER['DOCUMENT_ROOT'];
require_once($basepath. '/mapblogs/app_config/app_config_v2_sum2_08.php');

// need to validate this!!!!!!!!!
$row = (int)$_GET['row'];

/*
if ($row == 0) {
	$msgstr = "<response type='fail' ><msg>Invalid deletion request</msg></response>";
	echo $msgstr;
	die;
}
*/


$conn = mysql_connect($db_host, $db_user, $db_pass);
mysql_select_db($db_name, $conn);
//$query = "delete from " . $g_mapblog_table_name . " where row_seq_no = " . $row;
$query = "update " . $g_mapblog_table_name . " set active_record = 0 where row_seq_no = " . $row;
$result = mysql_query($query, $conn);
echo $result;

/*
$msgstr = "<response type='success' ><msg>Marker Deleted</msg></response>";

echo <<<XML
<?xml version="1.0"?>
$msgstr;
XML;
*/


?>
